package cn.gemframe.config.thread;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
@ConfigurationProperties("gem.threadpool")
public class GemThreadPoolProperties {

	private int corePoolSize = 10;// 线程池维护线程的最少数量
	private int maxPoolSize = 30;// 线程池维护线程的最大数量
	private int queueCapacity = 8; // 缓存队列
	private int keepAlive = 60;// 允许的空闲时间

}
